﻿@model AidBrella.ViewModels.ProjectViewModel

 <script src="@Url.Content("~/Scripts/js/project.js")" type="text/javascript"></script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    
    <div id="edit-project"> 
      <div class="row">
        <div class="cols2">@Html.LabelFor(model => model.Name): </div>
        <div class="cols2"> 
               @Html.EditorFor(model => model.Name)
               @Html.ValidationMessageFor(model => model.Name)
         </div>
      </div> 

    <div class="row">
        <div class="cols2">@Html.Label("Project Sector:"): </div>
        <div class="cols2">
                 @Html.DropDownListFor(model => model.ProjectSectorSelection, Model.ProjectSectorSelection)
          </div>
    </div> 
   
      <div class="row">
       <div class="cols2">@Html.LabelFor(model => model.Description): </div>
        <div class="desc">
               @Html.TextArea("txtDesc", @Model.Description)           
               @Html.ValidationMessageFor(model => model.Description)
         </div>
    </div> 


     <div class="row">
       <div class="cols2">@Html.LabelFor(model => model.StartDate): </div>
        <div class="desc"> 
              @Html.EditorFor(model => model.StartDate)        
         </div>
      </div> 

       <div class="row">
       <div class="cols2">@Html.LabelFor(model => model.EndDate): </div>
        <div class="desc">
              @Html.EditorFor(model => model.EndDate)  
         </div>
      </div> 


        <p>
            <input type="submit" value="Save" />
        </p>
   </div>   
    
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

